<template>
    <span @click="handleDelete()">{{typeName}}</span>
</template>
<script>
export default {
    name:'delete',
    props:{typeName:String,noticeInfo:String,noticeType:String},
    methods:{
        handleDelete(){
            this.$confirm({
                title: '确认'+this.typeName+(this.typeName=='删除'?('“'+this.noticeInfo+'”'+this.noticeType):'')+'吗?',
                cancelText:"取消",
                okText:'确定',
                onOk:()=>{
                    this.$emit('handleOk')
                },
                onCancel() {
                },
            });
        }
    }
}
</script>